package com.rongke.service;

import com.baomidou.mybatisplus.service.IService;
import com.rongke.commons.JsonResp;
import com.rongke.model.Admin;
import com.rongke.model.Channel;
import com.rongke.model.User;

/**
 * @version : Ver 1.0
 * @UserService
 * @用户基本信息Service
 */
public interface UserService extends IService<User> {
    JsonResp loginByPhone(String phone, String password, String phoneSign);

    void logout();

    User findLoginUser();

    JsonResp loginByUserName(String phone, String password);

    Admin getThisLogin();

    /**
     * 获取当前登录渠道商
     * @return
     */
    Channel getCurentChannel();

    /**
     * 渠道商登录
     * @param phone
     * @param password
     * @return
     */
    JsonResp channelLogin(String phone, String password);



}
